﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Copad.BusinessCard.Model
{
    public class OperationResult
    {
        private StringBuilder sb = new StringBuilder();
        public bool Successful { get; set; }
        public string Message { get { return sb.ToString(); } set { Append(value); } }
        public object RelateObject { get; set; }

        public OperationResult()
        {
            Successful = true;
        }

        public void Append(string text)
        {
            sb.Append(text);
        }

        public void AppendLine(string text)
        {
            sb.AppendLine(text);
        }
    }
}
